package com.hdax.dm.exception;


import com.hdax.dm.comtants.ResultEnumCode;


public class DmException extends RuntimeException{

    public DmException(ResultEnumCode code){
        this(code.getErrorCode(), code.getMessage());
    }
    public DmException(String errorCode, String message){
        super(message);
        this.errorCode = errorCode;
    }

    private String errorCode;

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

}
